/* -----------------------------------------------------------
 * Author: Marie Caswell
 * Testing Function: getCost()

 * Description: Check for correct getCost() behavior.  
 -----------------------------------------------------------*/

#include "dominion.h"
#include "dominion_helpers.h"
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include "rngs.h"

int main() {

	int seed = 1000;
    int numPlayer = 2;
    int numCards = 10;   
    int i;
    int j[10] = {6,5,4,4,5,4,4,3,4,3}; //array of correct cost values for cards in play
    int k[10] = {adventurer, council_room, feast, gardens, mine, remodel, smithy, village, baron, great_hall};
    struct gameState G;

    memset(&G, 23, sizeof(struct gameState));   // clear the game state
    initializeGame(numPlayer, k, seed, &G); // initialize a new game

    for(i = 0; i < numCards; i++)
       {
       	getCost(k[i]);
       	printf("card cost: %d\n", getCost(k[i]));
       	assert(getCost(k[i]) == j[i]);
       }

printf("\nTests passed.\n");
return 0;

} 
